import Layout from '@/views/layout'
import Layout2 from '@/views/layout/index2'

let basehzRouter = {
  path: '/baseManagement',
  component: Layout2,
  redirect: 'noredirect',
  name: 'baseManagement',
  needAuth: true,
  meta: { title: '基础数据', icon: 'basicsdata' },
  children: [
    {
      path: '/dataManage',
      component: Layout,
      meta: { title: '企业数据', noCache: true, breadcrumb: false  },
      redirect: '/dataManage/index',
      name: 'breedingCompany',
      needAuth: true,
      children: [{
        path: 'index',
        name: 'dataManage',
        component: () => import('@/views/dataManage/index'),
        meta: { title: '企业数据', noCache: true }
      },
      {
        path: 'view',
        name: 'dataManageView',
        component: () => import('@/views/dataManage/view'),
        meta: { title: '查看企业数据', noCache: true },
        hidden: true
      },
      {
        path: 'add',
        name: 'dataManageAdd',
        component: () => import('@/views/dataManage/add'),
        meta: { title: '新增企业数据', noCache: false },
        hidden: true
      },
      {
        path: 'edit',
        name: 'dataManageEdit',
        component: () => import('@/views/dataManage/edit'),
        meta: { title: '编辑企业数据', noCache: false },
        hidden: true
      }]
    }
  ]
}
export default basehzRouter